<?php

use Illuminate\Database\Seeder;

class Adminseed extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        factory(\App\Models\Admin::class,5)->create();
        // 找到后台id为1的用户
        $admin = \App\Models\Admin::find(1);
        $admin->name = 'cbniubi';
        $admin->nickname = '以鑫之名';
        $admin->save();
    }
}
